// Copyright 2011 Jefferson Willian
// willmont7@gmail.com

#include <cstdio>

int main() {
  int n;
  int ret;
  int t;
  int i;
  int games = 1;

  while (scanf("%d", &n) && n != 0) {
    ret = i = 0;
    while (i++ < n) {
      scanf("%d", &t);
      ret += t;
    }
    printf("Teste %d\n%d\n\n", games++, ret);
  }

  return 0;
}
